.class Lcom/brixd/niceapp/util/DetailRequestCache$1;
.super Ljava/lang/Object;
.source "DetailRequestCache.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/util/DetailRequestCache;->gotoDetail(IZ)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

.field final synthetic val$appId:I

.field final synthetic val$isClearTop:Z


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/util/DetailRequestCache;IZ)V
    .registers 4
    .param p1, "this$0"    # Lcom/brixd/niceapp/util/DetailRequestCache;

    .prologue
    .line 81
    iput-object p1, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    iput p2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->val$appId:I

    iput-boolean p3, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->val$isClearTop:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 3
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 107
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    invoke-static {v0}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$400(Lcom/brixd/niceapp/util/DetailRequestCache;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->safeDismiss(Landroid/app/Dialog;)V

    .line 108
    const v0, 0x7f0c00d9

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 109
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 81
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/util/DetailRequestCache$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 8
    .param p1, "result"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 85
    sget-object v2, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->NICE_DAILY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-static {p1, v2}, Lcom/brixd/niceapp/model/AppModel;->parseAppModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;

    move-result-object v0

    .line 86
    .local v0, "appModel":Lcom/brixd/niceapp/model/BaseAppModel;
    iget-object v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mAppModelCaches:Landroid/util/SparseArray;
    invoke-static {v2}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$000(Lcom/brixd/niceapp/util/DetailRequestCache;)Landroid/util/SparseArray;

    move-result-object v2

    iget v3, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->val$appId:I

    new-instance v4, Ljava/lang/ref/SoftReference;

    invoke-direct {v4, v0}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v2, v3, v4}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 88
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$100(Lcom/brixd/niceapp/util/DetailRequestCache;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 89
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "AppModel"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 90
    const-string v2, "ScrollToUpUsers"

    iget-object v3, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mScrollToUpUsers:Z
    invoke-static {v3}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$200(Lcom/brixd/niceapp/util/DetailRequestCache;)Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 91
    const-string v2, "ScrollToComment"

    iget-object v3, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mScrollToComment:Z
    invoke-static {v3}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$300(Lcom/brixd/niceapp/util/DetailRequestCache;)Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 92
    iget-boolean v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->val$isClearTop:Z

    if-eqz v2, :cond_51

    .line 93
    const/high16 v2, 0x4000000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 94
    const/high16 v2, 0x20000000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 95
    const/high16 v2, 0x10000000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 98
    :cond_51
    iget-object v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$100(Lcom/brixd/niceapp/util/DetailRequestCache;)Landroid/content/Context;

    move-result-object v2

    if-eqz v2, :cond_62

    .line 99
    iget-object v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$100(Lcom/brixd/niceapp/util/DetailRequestCache;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 102
    :cond_62
    iget-object v2, p0, Lcom/brixd/niceapp/util/DetailRequestCache$1;->this$0:Lcom/brixd/niceapp/util/DetailRequestCache;

    # getter for: Lcom/brixd/niceapp/util/DetailRequestCache;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    invoke-static {v2}, Lcom/brixd/niceapp/util/DetailRequestCache;->access$400(Lcom/brixd/niceapp/util/DetailRequestCache;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v2

    invoke-static {v2}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->safeDismiss(Landroid/app/Dialog;)V

    .line 103
    return-void
.end method
